package com.bird.设计模式.创建型.抽象工厂;

/**
 * @data 2022/2/13 16:25
 * @author: bird
 * @description:
 */
public class Test {
    public static void main(String[] args) {
        // Java视频和java文章都属于同一产品族
        CourseFactory courseFactory=new JavaCourseFactory();
        Video video = courseFactory.getVideo();
        Article article = courseFactory.getArticle();
        video.produce();
        article.produce();

    }
}
